package com.sfdk.graphics.tooltip
{
import flash.display.DisplayObject;
import flash.geom.Point;
import flash.geom.Rectangle;

public class ToolTipInfo
	{
		private var region_ : Rectangle;
		private var delay_ : int;
		private var fade_ : int;
		private var value_ : String;
		private var target_ : DisplayObject;
		
		public function ToolTipInfo(region : Rectangle, value : String, target : DisplayObject, delay : int = 1, fade : int = 500)
		{
			region_ = region;
			target_ = target;
			delay_ = delay;
			fade_ = fade;
			value_ = value;
		}
		
		public function getTarget() : DisplayObject
		{
			return target_;
		}
		
		public function getDelay() : int
		{
			return delay_;
		}
		
		public function getFade() : int
		{
			return fade_;
		}
		
		public function getValue() : String
		{
			return value_;
		}
		
		public function getRegion() : Rectangle
		{
			return region_;
		}
		
		public function getToolTipPosition() : Point
		{
			var point : Point = new Point(region_.left, region_.top);
			return point;
		}
		
		public function getHeight() : int
		{
			return region_.height;
		}

	}
}